﻿Imports System
Imports System.Data
Imports System.Data.SqlTypes
Imports System.Data.SqlClient

Public Class WfProjectTask

    Public Const Table_Project_Task As String = "project_task"

    '定义全局数据库连接对象
    Private conn As SqlConnection

    '定义全局数据库连接适配器
    Private dsCommand_WfProjectTask As SqlDataAdapter

    '定义查询命令
    Private GetWfTemplateInfoCommand As SqlCommand

    '定义事务
    Private ts As SqlTransaction


    '构造函数
    Public Sub New(ByVal DbConnection As SqlConnection, ByRef trans As SqlTransaction)
        MyBase.New()
        conn = DbConnection


        '实例化适配器
        dsCommand_WfProjectTask = New SqlDataAdapter()

        '打开数据库连接
        If conn.State = ConnectionState.Closed Then
            conn.Open()
        End If

        '引用外部事务
        ts = trans

        '填充适配器
        GetWfProjectTaskInfo("null")
    End Sub


    '获取项目任务信息
    Public Function GetWfProjectTaskInfo(ByVal strSQL_Condition_WfProjectTask As String) As DataSet

    End Function


    '更新项目任务信息
    Public Function UpdateWfProjectTask(ByVal WfProjectTaskSet As DataSet)

    End Function

End Class
